package com.lagou.server.api;

import com.lagou.common.api.IUserService;
import com.lagou.common.po.User;
import com.lagou.server.dao.IUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Kirito
 * @description:
 * @date 2020/05/26
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserMapper userMapper;

    @Override
    public String sayHello() {
        return "hello";
    }

    @Override
    public List<User> listUser() {
        return userMapper.listUser();
    }
}
